package cn.xrj.springcloud.service;

import cn.xrj.springcloud.pojo.Qcpage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "springcloud-provider-jobinfo",fallbackFactory = ServiceFallBackFactory.class)
@Component
public interface JobInfoService {
    @GetMapping("/qcpage/getAll")
    List<Qcpage> getAll();

    @GetMapping("/qcpage/getById/{id}")
    Qcpage getById(@PathVariable("id")Integer id);

    @DeleteMapping("/qcpage/deleteById/{id}")
    boolean deleteById(@PathVariable("id")Integer id);
}
